//
//  BaseModel.m
//  XYFMApp
//
//  Created by 岁变 on 16/8/29.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

- (instancetype)initWithDictionary:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
    
}

+ (__kindof instancetype)modelWithDictionary:(NSDictionary *)dic {
    
    return [[self alloc] initWithDictionary:dic];
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}


@end
